{eval
	$_G[home_tpl_titles] = array($navtitle, $_G['forum_thread']['subjectenc'], '{lang trade}');
	$navtitle = '';
}
{template common/header}
<!--{if !$_G[inajax]}-->

<script type="text/javascript" src="{$_G[setting][jspath]}forum_viewthread.js?{VERHASH}"></script>

<div id="pt" class="wp">
	<a href="index.php" class="nvhm">$_G[setting][bbname]</a>$navigation &rsaquo; {if $_G[gp_from]=='home'}<a href="home.php?mod=space&do=trade">{lang trade}</a> &rsaquo;{/if} <a href="forum.php?mod=viewthread&tid=$_G[tid]">{lang user_threads}</a>
</div>

<!--{if $_G['forum']['ismoderator']}-->
	<script type="text/javascript">var fid = parseInt('$_G[fid]'), tid = parseInt('$_G[tid]');</script>
	<script type="text/javascript" src="{$_G['setting']['jspath']}forum_moderate.js?{VERHASH}"></script>
	<form method="post" autocomplete="off" name="modactions" id="modactions">
	<input type="hidden" name="formhash" value="{FORMHASH}" />
	<input type="hidden" name="optgroup" />
	<input type="hidden" name="operation" />
	<input type="hidden" name="listextra" value="" />
	</form>
<!--{/if}-->

<div id="ct" class="wp cl">
<div class="wp w cl">
	<div class="ch">
		<label class="wx">
		<!--{if $_G[gp_from]=='home'}-->
		<a href="home.php">$_G[setting][navs][4][navname]</a>
		<!--{elseif $_G[gp_from]=='portal'}-->
		<a href="portal.php">$_G[setting][navs][1][navname]</a>
		<!--{else}-->
		<!--{if $_G['basescript'] == 'forum' && $_G['forum']['status'] != 3}--><a href="forum.php">$_G[setting][navs][2][navname]</a><!--{elseif $_G['basescript'] == 'group' || $_G['forum']['status'] == 3}--><a href="group.php">$_G[setting][navs][3][navname]</a><!--{/if}-->
		<!--{/if}-->
		</label>
	</div>
</div>
<div class="mn" style="overflow:hidden;">
	<div class="bm ih cl">
		<div class="icn avt"><a href="home.php?mod=space&uid=$trade[sellerid]"><!--{avatar($trade[sellerid],small)}--></a></div>
		<dl>
			<dt class="ptn">
				<span class="y">
					<a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2" onclick="showWindow('sendpm', this.href)" style="font-weight: 200"><img src="{IMGDIR}/pmto.gif" style="vertical-align:middle" />{lang send_pm}</a>&nbsp;
					<!--{if $post['qq']}-->&nbsp;<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=$post[qq]&amp;Site=$_G['setting']['bbname']&amp;Menu=yes" target="_blank" title="QQ"><img src="{IMGDIR}/qq.gif" alt="QQ" style="vertical-align:middle" /></a><!--{/if}-->
					<!--{if $post['icq']}-->&nbsp;<a href="http://wwp.icq.com/scripts/search.dll?to=$post[icq]" target="_blank" title="ICQ"><img src="{IMGDIR}/icq.gif" alt="ICQ" style="vertical-align:middle" /></a><!--{/if}-->
					<!--{if $post['yahoo']}-->&nbsp;<a href="http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank" title="Yahoo"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!" style="vertical-align:middle" /></a><!--{/if}-->
					<!--{if $post['taobao']}-->&nbsp;<a href="javascript:;" onclick="window.open('http://amos.im.alisoft.com/msg.aw?v=2&uid='+encodeURIComponent('$post[taobaoas]')+'&site=cntaobao&s=2&charset=utf-8')" title="{lang taobao}"><img src="{IMGDIR}/taobao.gif" alt="{lang taobao}" style="vertical-align:middle" /></a><!--{/if}-->
				</span>
				$trade[seller]<!--{if $online}--> <img class="vm" title="{lang on_line}" alt="online" src="{IMGDIR}/ol.gif"><!--{/if}-->
			</dt>
			<dd class="mtn"><a href="forum.php?mod=viewthread&tid=$_G[tid]{if $_G[gp_from]}&from=$_G[gp_from]{/if}">$_G['forum_thread'][subject]</a> &rsaquo; {lang trade_viewtrade}</dd>
		</dl>
	</div>	
	<hr class="l" />
	<div class="bm">
		<!--{if $_G[inajax]}--><span class="y"><a href="javascript:;" onclick="$('tradeinfo$trade[pid]').style.display = 'none';display('trade$trade[pid]');" title="{lang pack_up}"><img src="{STATICURL}image/common/collapsed_yes.gif" /> {lang pack_up}</a></span><!--{/if}-->
		<h1 class="ph mbm bbda pbm"><a href="forum.php?mod=viewthread&tid=$_G[tid]&do=tradeinfo&pid=$post[pid]" target="_blank">$trade[subject]</a></h1>
<!--{/if}-->

<div class="bbda ptm cl"{if $_G[inajax]} style="border:0"{/if}>
	<div class="cl">
		<div class="spvimg">
		<!--{if $trade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
		<!--{if $trade['thumb']}-->
			<a href="javascript:;"><img src="$trade[thumb]" onclick="zoom(this, '$trade[attachurl]')" width="{if $trade[width] > 300}300{else}$trade[width]{/if}" _width="300" _height="300" alt="$trade[subject]" /></a>
		<!--{else}-->
			<img src="{IMGDIR}/nophoto.gif" alt="$trade[subject]" />
		<!--{/if}-->
		<!--{if !$_G['forum_thread']['is_archived']}-->
			<!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] < $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && $post['authorid'] == $_G['uid'])) && ($_G['forum_thread']['digest'] >= 0 || !$post['first']) || $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}-->
				<p class="ptm pbm">
					<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}--><span class="y"><a href="javascript:;" onclick="modaction('delpost', $_G[gp_pid])">{lang delete}</a>&nbsp;&nbsp;</span><!--{/if}-->
					<a class="editp" style="padding-left: 20px; " href="forum.php?mod=post&action=edit&amp;fid=$_G[fid]&amp;tid=$_G[tid]&amp;pid=$post[pid]{if !empty($_G[gp_modthreadkey])}&amp;modthreadkey=$_G[gp_modthreadkey]{/if}&amp;page=$page">{lang edit_trade}</a>
				</p>
			<!--{/if}-->
		<!--{/if}-->
		</div>
	
		<div class="spi cl">
			<!--{if $_G[inajax]}-->
				<span class="y"><a href="javascript:;" onclick="$('tradeinfo$trade[pid]').style.display = 'none';display('trade$trade[pid]');" title="{lang pack_up}"><img src="{STATICURL}image/common/collapsed_yes.gif" /> {lang pack_up}</a></span>
				<h4 class="wx mbm bbda"><a href="forum.php?mod=viewthread&tid=$_G[tid]&do=tradeinfo&pid=$post[pid]" target="_blank">$trade[subject]</a></h4>
			<!--{/if}-->
			<dl>
			<dt>{lang trade_type_viewthread}:</dt>
			<dd>
				<!--{if $trade['quality'] == 1}-->{lang trade_new}<!--{/if}-->
				<!--{if $trade['quality'] == 2}-->{lang trade_old}<!--{/if}-->
				{lang trade_type_buy}
			</dd>
			<dt>{lang trade_transport}:</dt>
			<dd>
				<!--{if $trade['transport'] == 1}-->{lang post_trade_transport_seller}<!--{/if}-->
				<!--{if $trade['transport'] == 2 || $trade['transport'] == 4}-->
					<!--{if $trade['transport'] == 4}-->{lang post_trade_transport_physical}<!--{/if}-->
					<!--{if !empty($trade['ordinaryfee']) || !empty($trade['expressfee']) || !empty($trade['emsfee'])}-->
						<!--{if !empty($trade['ordinaryfee'])}-->{lang post_trade_transport_mail} $trade[ordinaryfee] {lang payment_unit}<!--{/if}-->
						<!--{if !empty($trade['expressfee'])}--> {lang post_trade_transport_express} $trade[expressfee] {lang payment_unit}<!--{/if}-->
						<!--{if !empty($trade['emsfee'])}--> EMS $trade[emsfee] {lang payment_unit}<!--{/if}-->
					<!--{elseif $trade['transport'] == 2}-->
						{lang post_trade_transport_none}
					<!--{/if}-->
				<!--{/if}-->
				<!--{if $trade['transport'] == 3}-->{lang post_trade_transport_virtual}<!--{/if}-->
			</dd>
			<dt>{lang trade_remaindays}:</dt>
			<dd>
			<!--{if $trade[closed]}-->
				<em>{lang trade_timeout}</em>
			<!--{elseif $trade[expiration] > 0}-->
				{$trade[expiration]}{lang days}{$trade[expirationhour]}{lang trade_hour}
			<!--{elseif $trade[expiration] == -1}-->
				<em>{lang trade_timeout}</em>
			<!--{else}-->
				&nbsp;
			<!--{/if}-->
			</dd>
			<dt>{lang post_trade_number}:</dt><dd>$trade[amount]</dd>
			<!--{if $trade[locus]}--><dt>{lang trade_locus}:</dt><dd>$trade[locus]</dd><!--{/if}-->
			<dt>{lang post_trade_buynumber}:</dt><dd>$trade[totalitems]</dd>
		</dl>
		<dl class="nums">
			<dt>{lang trade_price}:</dt>
			<dd>
				<!--{if $trade[price] > 0}-->
					<p><em>$trade[price]</em>&nbsp;{lang payment_unit}</p>
				<!--{/if}-->
				<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade[credit]}-->
					<p><!--{if $trade[price] > 0}-->{lang trade_additional} <!--{/if}--><em>$trade[credit]</em>&nbsp;{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}</p>
				<!--{/if}-->
			</dd>
		</dl>
		<dl>
			<!--{if $trade[price] && $trade['costprice'] > 0 || $_G['setting']['creditstransextra'][5] != -1 && $trade[credit] && $trade['costcredit'] > 0}-->
				<dt>{lang trade_costprice}:</dt>
				<dd class="xg1">
					<!--{if $trade['costprice'] > 0}-->
						<del>$trade[costprice] {lang payment_unit}</del><br />
					<!--{/if}-->
					<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['costcredit'] > 0}-->
						<del><!--{if $trade[costprice] > 0}-->{lang trade_additional} <!--{/if}-->$trade[costcredit] {$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}</del>
					<!--{/if}-->
				</dd>
			<!--{/if}-->
		</dl>
		<!--{if $post['authorid'] != $_G['uid'] && empty($thread['closed']) && empty($trade['closed'])}-->
			<p class="pns mbm">
			<!--{if $trade[amount]}-->
				<button onclick="window.open('forum.php?mod=trade&tid=$post[tid]&pid=$post[pid]','','')" class="pn"><span>{lang attachment_buy}</span></button> &nbsp;
			<!--{else}-->
				<button disabled="yes" class="pn"><span>{lang sold_out}</span></button> &nbsp;
			<!--{/if}-->
			<!--{if $_G['uid']}--><button onclick="showWindow('sendpm', 'home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2&tradeid=$post[pid]')" class="pn"><span><!--{if $online}-->{lang on_line}<!--{/if}-->{lang trade_bargain}</span></button><!--{/if}-->
			</p>
		<!--{/if}-->	
		<!--{if $trade['account']}-->
			<p><em>({lang post_trade_supportalipay})</em></p>
		<!--{/if}-->
		</div>
	</div>
	<div class="c pl cl mtw">
		<div style="overflow:hidden">
			$post[message]
		</div>
		<!--{if $post['attachment']}-->
			<div class="notice postattach">{lang attachment}: <em>{lang attach_nopermission}</em></div>
		<!--{elseif $post['imagelist'] || $post['attachlist']}-->
			<div class="pattl">
				<!--{if $post['imagelist']}-->
					$post['imagelist']
				<!--{/if}-->
				<!--{if $post['attachlist']}-->
					$post[attachlist]
				<!--{/if}-->
			</div>
		<!--{/if}-->

		<!--{if !$_G[inajax]}--><div id="comment_$post[pid]" class="cl tpst cm"></div><!--{/if}-->
	</div>
	<!--{if !$_G[inajax] && $allowpostreply && $post['allowcomment'] && $_G['setting']['commentnumber']}--><div class="pob"><em><a class="fastre" href="javascript:;" onclick="showWindow('comment', 'forum.php?mod=misc&action=comment&amp;pid=$post[pid]', 'get', 0)">{lang comments}</a></em></div><!--{/if}-->
</td></tr>
</td></tr></table></div>

<!--{if $aimgs[$post[pid]]}-->
<script type="text/javascript" reload="1">var aimgcount = new Array();aimgcount[{$_G[gp_pid]}] = [{echo implode(',', $aimgs[{$_G[gp_pid]}]);}];attachimgshow({$_G[gp_pid]});</script>
<!--{/if}-->
<!--{if !$_G[inajax] && $post[comment]}-->
<script type="text/javascript" reload="1">ajaxget('forum.php?mod=misc&action=commentmore&tid=$post[tid]&pid=$post[pid]', 'comment_$post[pid]');</script>
<!--{/if}-->

<!--{if !$_G[inajax]}-->
	</div></div>
	<div class="sd pph">
		<div class="bn">
			<h2>{lang trade_rate}</h2>
			<table cellpadding="4" cellspacing="4" border="0" width="100%">
				<tr><th style="width:60px;">{lang trade_seller_real_name}</th><td><!--{if $post[realname]}-->$post[realname]<!--{/if}--></td></tr>
				<tr><th style="width:60px;">{lang eccredit_sellerinfo}</th><td><a href="home.php?mod=space&uid=$post[authorid]&do=trade&view=eccredit#sellcredit" target="_blank">$post[buyercredit]&nbsp;<img src="{STATICURL}image/traderank/buyer/$post[buyerrank].gif" border="0" style="vertical-align: middle"></a></td></tr>
				<tr><th>{lang eccredit_buyerinfo}</th><td><a href="home.php?mod=space&uid=$post[authorid]&do=trade&view=eccredit#buyercredit" target="_blank">$post[sellercredit]&nbsp;<img src="{STATICURL}image/traderank/seller/$post[sellerrank].gif" border="0" style="vertical-align: middle"></td></tr>
			</table>
		</div>
		<!--{if $usertrades}-->
			<hr class="da" />
			<div class="bn" style="padding-bottom: 0px;">
				<h2>{lang trade_other_goods}</h2>
				<ul class="ml tradl cl">
				<!--{loop $usertrades $usertrade}-->
					<li>
						<a href="forum.php?mod=viewthread&tid=$usertrade[tid]&do=tradeinfo&pid=$usertrade[pid]" class="tn">
							<!--{if $usertrade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
							<!--{if $usertrade['aid']}--><img src="{echo getforumimg($usertrade[aid])}" width="130" alt="$usertrade[subject]" /><!--{else}--><img src="{IMGDIR}/nophoto.gif" width="130" alt="$usertrade[subject]" /><!--{/if}-->
						</a>
						
						<!--{if $usertrade[price] > 0}-->
							<p class="p">&yen; <em class="xi1">$usertrade[price]</em></p>
						<!--{/if}-->
						<!--{if $_G['setting']['creditstransextra'][5] != -1 && $usertrade[credit]}-->
							<p class="{if $usertrade[price] > 0}xg1{else}p{/if}"><!--{if $usertrade[price] > 0}-->{lang trade_additional} <!--{/if}--><em class="xi1">$usertrade[credit]</em>&nbsp;{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}</p>
						<!--{/if}-->
						<h4><a href="forum.php?mod=viewthread&tid=$usertrade[tid]&do=tradeinfo&pid=$usertrade[pid]">$usertrade[subject]</a></h4>
					</li>
				<!--{/loop}-->
				</ul>
			</div>
		<!--{/if}-->
		<!--{if $userthreads}-->
			<hr class="da" />
			<div class="bn cl xl xl1">
				<h2>{lang trade_seller_other_goods}</h2>
				<ul>
				<!--{loop $userthreads $userthread}-->
					<li><span class="z xg1">[{date($userthread[dateline], 'n-j')}]</span>&nbsp;<a href="forum.php?mod=viewthread&tid=$userthread[tid]">$userthread[subject]</a></li>
				<!--{/loop}-->
				</ul>
			</div>
		<!--{/if}-->
	</div>
	</div>
<!--{/if}-->
{template common/footer}